import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { RadioGroup, Radio } from 'vant';
import { Field } from 'vant';
import { Dialog } from 'vant';

Vue.use(Field);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Dialog);

import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

Vue.use(Antd);

import VueTouch from 'vue-touch'

Vue.use(VueTouch, { name: 'v-touch' })

VueTouch.config.swipe = {

  threshold: 100 //手指左右滑动距离

}



import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad, {
  preLoad: 1,
  error: require('./assets/error.jpg'),
  loading: require('./assets/loading.gif'),
  attempt: 2,
})

import axios from 'axios'

import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
